package com.xtkj.accountjava.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xtkj.accountjava.entity.AccountBookEntity;
import com.xtkj.accountjava.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {

    List<UserEntity> getAllUser();
    UserEntity findUserById(@Param("id") int id);

    UserEntity findUserByOpenid(String openid);

    UserEntity findUserByUserAccount(String account);

    AccountBookEntity findAccountBookById(int id);

    UserEntity checkToken(String token);
}
